<form action="<?php e_page("comment","service");?>" method="get">
    <fieldset>
        <legend></legend>
<!--        <label for="goodsName">商品名称</label><br/>-->
<!--        <input name="goodsName" type="text" id="goodsName" placeholder="请输入商品名称"/><br/>-->
<!--        <label for="phone">用户（手机号）</label><br/>-->
<!--        <input name="phone" type="text" id="phone" placeholder="请输入用户（手机号）"><br/>-->
        <label for="serviceId">服务站名称</label><br/>
        <select name="serviceId" id="serviceId">
            <option value="" >所有</option>
            <?php foreach($r['service_info'] as $v){?>
                <option value="<?php echo $v['id'] ?>" <?php if($r['serviceId']==$v['id']) echo 'selected' ?>><?php echo $v['service_name'] ?></option>
            <?php }?>
        </select>
        <input type="submit" value="搜索"/>
    </fieldset>
</form><br/>
<?php if(empty($r['service_comment'])){ echo "亲，暂时还没有服务站评价信息哦~"?>
<?php }else{?>
    <table id="dataTable">
        <thead>
        <tr>
            <th>ID</th>
            <th>订单号</th>
            <th>用户</th>
            <th>服务站名称</th>
            <th>评价</th>
            <th>评价时间</th>
            <th>质量得分</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($r['service_comment'] as $v){?>
            <tr>
                <td><?php echo $v['id']?></td>
                <td><?php echo $v['order_id'];?></td>
                <td><?php echo $v['user_id']?></td>
                <td><?php echo $v['service_id'];?></td>
                <td><?php echo $v['comment'];?></td>
                <td><?php echo $v['create_time'];?></td>
                <td><?php echo $v['score'];?>分</td>
                <td><a href="<?php e_action("serviceDetail","id={$v['id']}");?>">查看详情</a> / <a href="<?php e_action("serviceDelete","id={$v['id']}");?>">删除</a></td>
            </tr>
        <?php } ?>
        </tbody>
    </table>
    <?php
    /** @var Page $page */
    $page=$r['pages'];
    ?>
    <?php echo $page->getPageHtml(); ?>
<?php }?>